#ifndef LIGHTSETTINGSFORM_H
#define LIGHTSETTINGSFORM_H

#include <QWidget>

namespace Ui {
class LightSettingsForm;
}

class LightSettingsForm : public QWidget
{
    Q_OBJECT

public:
    explicit LightSettingsForm(QWidget *parent = nullptr);
    ~LightSettingsForm();

    void UpdateShowType(int type=0);

private:
    Ui::LightSettingsForm *ui;

protected:
    virtual void paintEvent(QPaintEvent*event) override;
public slots:
    void updateLedValue(int value);
    
    // 更新增益值
    void updateGain(int value);
    // 更新灰度系数值
    void updateGamma(int value);
    // 更新图像增益值
    void updateGainImage(int value);
private slots:
    void on_toolButton_contractExpand_clicked(bool checked);
};

#endif // LIGHTSETTINGSFORM_H
